package com.example.demo.config;

public enum ERHttpStatus {

    // 2xx Informational

    /**
     * {@code 100 密码错误}
     */
    PASSWORD_MISTAKE(201, "密码错误！"),
    USER_NOT_EXIST(202, "用户不存在！");

    private final int code;

    private final String message;

    ERHttpStatus(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public int code() {
        return this.code;
    }

    public String message() {
        return this.message;
    }

}
